#include "gpio.h"

void SystemInit(void) {}

void delay(uint32_t count) {
    while(count--) {
        __asm__("nop");
    }
}

int main(void) {
    RCC->APB2ENR |= RCC_APB2ENR_IOPAEN;
    
    GPIOA->CRL &= ~GPIOA_CRL_CLR(5);
    GPIOA->CRL |= GPIOA_CRL_SET(5, GPIO_CRL_OUT_PP_10MHZ);
    
    GPIOA->BSRR = BSRR_BR_PIN(5);
    
    while(1) {
        GPIOA->BSRR = BSRR_BS_PIN(5);
    }
}